<div class="popup_body">
	<div class="popup_head">
		<div class="popup_action">
			<div class="popup_action_link l7" id="popup_close"></div>
		</div>
	</div>	
	<div class="popup_content">
		<form name="form" action="<?php echo Yii::app()->createUrl('video/createPopup', array('profile'=>Yii::app()->user->id))?>" method="POST" class="uploadVideoPopup" enctype="multipart/form-data">
			<div class="add_files_popup">
				<div class="c">
					<div class="cc">
			<table class="flds_form">
				<tbody>
					<tr>
						<td class="flds_form_l">
							<label for="Video_url" class="required">Ссылка на источник <span class="required">*</span></label>
						</td>
						<td class="flds_form_r">
							<div class="flds_border">
								<div class="flds_border_inside">
									<input class="settings_fld" name="Video[url]" id="Video_url" type="text">
								</div>
							</div>
						</td>
						<td class="flds_form_r submit">
							<input type="submit" name="" value="Загрузить" class="green_btn tac">
						</td>
					</tr>
				</tbody>
			</table>
					</div>
				</div>
			</div>
		</form>
		<?php foreach($videos as $key=>$video){ ?>	
			<div class="img">
				<a href="" onclick="return false;" class="add_attachment">
					<div class="one_image">
						<div class="image_x_wrap hidden"><div class="image_x"></div></div>
						<img src="<?php echo VideoPreview::getVideoPreview($video->video->code); ?>" width="180" height="107" border="0" alt="" />
						<div class="name"><?php echo CHtml::encode($video->name); ?></div>
						<input type="hidden" name="videos[]" value="<?php echo $video->video_id; ?>" class="videos" />
					</div>
				</a>
			</div>
		<?php } ?>
	</div>		
</div>